 package com.demo.helloworld.bo;
 
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.outstanding.framework.plugin.enumserializer.JsonEnumDeserializer;
import com.outstanding.framework.plugin.enumserializer.JsonEnumSerializer;
import com.outstanding.framework.base.db.BaseEnum;
 
 
 /**
  * value 为数据库保存的值，一般来说建议从10 开始，而非从0或1开始，这样是避免在枚举转换中造成通过index 来发序列化枚举 
  *
  */
 public enum Sex implements BaseEnum<Integer> {
   Man(10, "男人"),  Woman(11, "女人");
   
   private Integer value;
   private String message;
   
   private Sex(Integer value, String message)
   {
     this.value = value;
     this.message = message;
   }
   
   public Integer getValue() {
     return this.value;
   }
   
 
 
   public String getMessage()
   {
     return this.message;
   }
 }
